GetSize
TheGetSize
method returns the size (number of bytes) of the data in the current focus context.
ODULong GetSize ();
- return value
- The size (in bytes) of the data in the current focus context, expressed as an unsigned 32-bit value.
DISCUSSION
If this storage unit is focused on the entire storage unit, this method returns the total size of all properties and values in this storage unit. If it is focused on a property, this method returns the total size of all values in the focused property. If it is focused on a value, this method returns the size of the data stream corresponding to the focused value.If the currently focused value is a promise value, the promise is fulfilled before the size of the value is evaluated.
EXCEPTIONS
kODErrZeroRefCount
- This storage unit has a reference count of 0.
SEE ALSO
Listing 2-45 on page 106 in OpenDoc Cookbook.
"Manipulating the Data in a Value" on page 276 in OpenDoc Programmer's Guide.
"Fulfilling a Promise" on page 331 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help